package com.xiaoxu.intranetweb.mybatisplusSzappdb.Dic;

import org.springframework.stereotype.Component;

@Component
public class IcCardAuthDic {
    //    获取cardAuthStatus狀態
    public String getIcCardAuthDic(Integer authStatus){
        String dic = "";
        if (authStatus == null ){
            return dic;
        }
        switch (authStatus){
            case 0:
                dic = "正常";
                break;
            case 1:
                dic = "撤销";
                break;
        }
        return dic;
    }

    public String getTrucksInfoApprovedDic(Integer trucksInfoApproved){
        String trucksInfoApprovedDic = "";
        if (trucksInfoApproved == null ){
            return trucksInfoApprovedDic;
        }
        switch (trucksInfoApproved){
            case 0:
                trucksInfoApprovedDic = "批准";
                break;
            case 1:
                trucksInfoApprovedDic = "未批准";
                break;
        }
        return trucksInfoApprovedDic;
    }

}
